package com.dream.oproject.base.dao;

import java.io.Serializable;

import org.springframework.stereotype.Service;

import com.dream.oproject.base.model.IdEntity;
import com.dream.oproject.page.PageInfo;

/**
 * @author Administrator
 * @date 2011-9-8
 */
@Service
public interface IBaseDao<T extends IdEntity, PK extends Serializable> {
	public T get(PK id);
	
	public int delete(PK id);
	
	public int save(T entity);	
	
	public PageInfo getObjectListByPage(PageInfo pageInfo);
}
